<html>
<head>
<meta charset="UTF-8">
<title>子系统列表</title>
<link id="easyuiTheme" id="easyuiTheme" href="../../static/easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css"/>
<link href="../../static/easyui/themes/icon.css" rel="stylesheet" type="text/css"/>
<script src="../../static/easyui/jquery.min.js" type="text/javascript"></script>
<script src="../../static/easyui/jquery.cookie.js" type="text/javascript"></script>
<script src="../../static/easyui/ui-theme.js" type="text/javascript"></script>
<script src="../../static/easyui/jquery.easyui.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../static/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.util.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.jquery.ajax.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.easyui.util.js" type="text/javascript"></script>
<script src="../../ffres/dict/all.js" type="text/javascript"></script>
<a href="" target="_blank" id="commonLink" name="commonLink"></a>
</head>
<script type="text/javascript">

	function onDblClickRow(index,row) {
    	window.parent.onChooseOrgName(row);
    	window.parent.JLEUtil.closewin();
	}

	function selectReturn() {
   	 	var row = $('#dg').datagrid('getSelected');
    	if (row) {
       	 onDblClickRow(-1, row);
		} else {
			$.messager.alert('提示', '请选择一条记录！', 'info');
		}
	}

	function closeForm() {
	    window.parent.JLEUtil.closewin();
	}
	
	
	function reloadList(){
	    $('#dg').datagrid('reload');
	    JLEUtil.closewin();
	};
	
</script>
</head>
<body class="easyui-layout">
<div data-options="region:'north',title:''" style="height: 40px; ">
	<form id="searchForm">
		<table>
			<tr>
				<td class="searchTd">&nbsp;子系统代码：</td>
				<td><input name="subsCode" id="subsCode"/></td>
				<td class="searchTd">&nbsp;子系统名称：</td>
				<td><input name="subsName" id="subsName"/></td>
				<td><a class="easyui-linkbutton" href="javascript:void(0);" onclick="JLEUtil.queryForm('searchForm','dg','../../api/s/subs/infos');">查找</a></td>
				<td><a class="easyui-linkbutton" href="javascript:void(0);" onclick="JLEUtil.clearForm('searchForm');">清空</a></td>
			</tr>
		</table>
	</form>
</div>
<div data-options="region:'center',split:false">
<table id="dg" class="easyui-datagrid" title="" style="width:100%;height:90%"
			data-options="singleSelect:true,collapsible:true,url:'../../api/s/subs/infos',method:'post'"
			toolbar="#tb"
		title="Load Data" 
		rownumbers="true" pagination="true" pageSize="20">
		<thead>
			<tr>
				<th data-options="field:'subsCode',resizable:true" >子系统代码</th>
				<th data-options="field:'subsName',resizable:true" >子系统名称</th>
			</tr>
		</thead>
	</table>
	<div style="text-align: center; padding: 15px;height: 10%;">
            <a href="javascript:void(0)" class="easyui-linkbutton"
               onclick="selectReturn()">&nbsp;选择返回&nbsp;</a>
            <a href="javascript:void(0)" class="easyui-linkbutton"
               onclick="closeForm()">&nbsp;关&nbsp;闭&nbsp;</a>
        </div>
</div>
</body>
</html>
